/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: ActDrawAwardItem
 * Author:   zhouheng
 * Date:     2019/6/16 22:10
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.zhouh.golden.activity.domain;

import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * 〈一句话功能简述〉<br> 
 * 〈奖项〉
 *
 * @author zhouheng
 * @create 2019/6/16
 * @since 1.0.0
 */
@Data
@Table(name = "t_act_award_item")
public class ActDrawAwardItem {
    @Id
    @GeneratedValue(generator = "JDBC")
    private Integer id;

    // 奖品名称
    @Column(name = "item_name")
    private String itemName;

    // 总库存量
    @Column(name = "total_num")
    private Integer totalNum;

    // 中将概率
    @Column(name = "probability")
    private Float probability;

    // 奖项状态（0不可用，1可用）
    @Column(name = "status")
    private Integer status;

    // 每天限制发放奖品数
    @Column(name = "day_total_num")
    private Integer dayTotalNum;

    // 奖项对应的奖品编号
    @Column(name = "award_id")
    private Integer awardId;

    // 奖项等级
    @Column(name = "level")
    private Integer level;

    // 创建时间
    @Column(name = "create_time")
    private Date createTime;

    // 乐观锁
    @Version
    private Integer version;
}